<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>常熟理工问卷系统</title>
    <link rel="stylesheet" th:href="@{/asserts/bootstrap4/css/bootstrap.css}">
    <link rel="stylesheet" th:href="@{/asserts/css/TeacherSystem.css}">
</head>
<body>
<div th:replace="Default::topNav(${username},${account})"></div>
<div th:replace="Default::leftNav('CheckQuestionForm',${userType})"></div>
<div class="container-fluid">
    <div class="checkforms" th:if="${data}">
        <div class="onecheckform" th:each="oneform : ${data}">
            <div class="checkform_user">
                <span th:text="'#'+${oneform.formId}+' ('+${oneform.stu_id}+')'+${oneform.stu_name}+'---'+${oneform.major_name}+' '"></span>
            </div>
            <div class="checkform_title">
                <span th:text="'---来自问卷：#'+${oneform.questionId}+' '+${oneform.title}"></span>
            </div>
            <div class="checkform_detail">
                <a class="btn btn-dark"
                   th:href="'/CheckFormDetails/'+${oneform.formId}" target="_blank">查看填写细节</a>
            </div>
            <div class="clear"></div>
        </div>

    </div>
    <div class="noQuestions" th:if="not ${data}">
        <img th:src="@{/asserts/img/noquestion.png}">
        <div>你还没有收到一份填写的表单哦！</div>
    </div>
</div>
</body>
<script th:src="@{/asserts/js/jquery-3.3.1.min.js}"></script>
<script th:src="@{/asserts/js/popper.min.js}"></script>
<script th:src="@{/asserts/bootstrap4/js/bootstrap.js}"></script>
<script th:src="@{/asserts/js/canvas-nest.min.js}"></script>
<script th:replace="Default :: linklist(${userType})"></script>
<script th:if="${userType} eq 'Teacher'">
    $("#AuditForm").click(function () {
        window.location.href = "/TeacherAuditForm?page=1";
    });
</script>
</html>